请求
curl --location --request GET 'https://openapi.gs-robot.com/openapi/v2alpha1/s/robots/*/status:batchGet'
--header 'Content-Type: application/json'
--header 'Authorization: Bearer {{token}}'
--data '{
"names": "TEST00-0000-000-S003",
"names": "TEST00-0000-000-B001"
}'
输出
{
"robotStatus": [
{
"serialNumber": "TEST00-0000-000-S003",
"taskState": "IDLE",
"online": true,
"speedKilometerPerHour": 0,
"battery": {
"charging": true,
"powerPercentage": 100
},
"emergencyStop": {
"enabled": false
},
"localizationInfo": {
"localizationState": "NORMAL",
"map": {
"id": "f950f2a3-8e87-4227-a5ed-af4a69ab65dd",
"name": "zy",
"version": "maps/a2e2d306-6fe6-11ef-9314-2f34eb0b96d5/versions/799cd92a-6fe9-11ef-9314-a5253308f6ef"
},
"mapPosition": {
"x": 903,
"y": 426,
"angle": -92.349
}
},
"cleanModes": [
{
"name": "清洗"
},
{
"name": "清扫"
},
{
"name": "尘推"
},
{
"name": "吸尘"
}
],
"supportSite": true,
"navigationPoints": {
"naviPoints": [
{
"naviPointName": "Origin"
},
{
"naviPointName": "1"
},
{
"naviPointName": "End"
},
{
"naviPointName": "Current"
}
]
},
"workModes": [
{
"id": "03d40cb292754452aeb96932c90787b9",
"name": "清洗",
"strength": "prefer_custom",
"type": "1"
},
{
"id": "09f32e0e25154338ad149cbff97f8c4b",
"name": "清扫",
"strength": "prefer_custom",
"type": "1"
},
{
"id": "2f5261caf6284bb79e9023c6858e3833",
"name": "尘推",
"strength": "prefer_custom",
"type": "1"
},
{
"id": "19f32e0e25154338ad149cbff97f8c4b",
"name": "吸尘",
"strength": "prefer_custom",
"type": "1"
}
],
"currentTask": {
"workMode": {
"id": "",
"name": "",
"type": 0,
"subType": "",
"strength": ""
},
"taskInstanceId": "",
"manualControlling": false
},
"device": {
"cleanWaterTank": {
"level": 0
},
"recoveryWaterTank": {
"level": 0
},
"rollingBrush": {
"ifPutDown": false
},
"softSqueegee": {
"ifPutDown": false
},
"rollingSqueegee": {
"ifPutDown": false
},
"vacuum": {
"enabled": false
}
}
},
{
"serialNumber": "TEST00-0000-000-B001",
"taskState": "IDLE",
"online": true,
"speedKilometerPerHour": 0,
"battery": {
"charging": false,
"powerPercentage": 21
},
"emergencyStop": {
"enabled": false
},
"localizationInfo": {
"localizationState": "NORMAL",
"map": {
"id": "121cd01f-f682-4b75-a689-f29c3b509168",
"name": "112233445566",
"version": "maps/a281c23e-6f59-11ef-9aef-75f134c29a3d/versions/bd5632e9-6f59-11ef-9aef-15fe9ef97a92"
},
"mapPosition": {
"x": 179,
"y": 210,
"angle": -127.454
}
},
"cleanModes": [
{
"name": "__尘推"
},
{
"name": "__洗地"
}
],
"supportSite": true,
"navigationPoints": {
"naviPoints": []
},
"workModes": [
{
"id": "489287e76768465486c8738f9443ba4b",
"name": "__尘推",
"strength": "custom",
"type": "1"
},
{
"id": "deee180b6ed94ad59e2a69f5e902500a",
"name": "__洗地",
"strength": "custom",
"type": "1"
},
{
"id": "inspect",
"name": "inspect",
"strength": "middle",
"type": "5"
}
],
"currentTask": {
"workMode": {
"id": "",
"name": "",
"type": 0,
"subType": "",
"strength": ""
},
"taskInstanceId": "",
"manualControlling": false
},
"device": {
"cleanWaterTank": {
"level": 30
},
"recoveryWaterTank": {
"level": 30
},
"rollingBrush": {
"enabled": false,
"ifPutDown": false
},
"spray": {
"isRunning": false,
"waterLevel": 0
},
"vacuum": {
"enabled": false
}
}
}
]
}